<!-- 物料组成设计单审核 -->

<template>
  <div>
       <el-table
          :data="tableData"
          border
          style="width: 100%">
          <el-table-column
            fixed
            prop="date"
            label="设计单编号"
            width="150">
          </el-table-column>
          <el-table-column
            prop="name"
            label="产品编号"
            width="120">
          </el-table-column>
          <el-table-column
            prop="province"
            label="产品名称"
            width="120">
          </el-table-column>
          <el-table-column
            prop="city"
            label="设计人"
            width="120">
          </el-table-column>
          <el-table-column
            prop="address"
            label="登记时间"
            width="300">
          </el-table-column>
          <el-table-column
            prop="zip"
            label="物料总成本"
            width="300">
          </el-table-column>
          <el-table-column
            fixed="right"
            label="操作"
            width="200">
               <el-button type="primary" style="float:left;margin-bottom:20px" @click="reexamine = true">复核</el-button>

          </el-table-column>
        </el-table>
        <el-dialog title="复核" :visible.sync="reexamine">
          <el-form ref="from" :model="from" label-width="105px" >
            <el-row>
              <el-col :span="24">
                <el-form-item label="设计单编号">
                  <el-input v-model="from.part_designnumber"></el-input>
                </el-form-item>
              </el-col>
            </el-row>
            <el-row>
              <el-col :span="12">
                <el-form-item label="产品名称">
                  <el-input v-model="from.product_name"></el-input>
                </el-form-item>
              </el-col>
              <el-col :span="12">
                <el-form-item label="产品编号">
                  <el-input v-model="from.product_id"></el-input>
                </el-form-item>
              </el-col>
            </el-row>
            <el-row>
              <el-col :span="8">
                <el-form-item label="设计人">
                  <el-input v-model="from.design_name"></el-input>
                </el-form-item>
              </el-col>
              <el-col :span="8">
                <el-form-item label="审核人">
                  <el-input v-model="from.part_auditor"></el-input>
                </el-form-item>
              </el-col>
              <el-col :span="8">
                <el-form-item label="审核时间">
                  <el-input v-model="from.audit_time"></el-input>
                </el-form-item>
              </el-col>
            </el-row>
            <el-row>
              <el-col :span="24">
                <el-form-item label="设计要求">
                  <el-input  type="textarea" v-model="from.part_requirements"></el-input>
                </el-form-item>
              </el-col>
            </el-row>

            <el-table
               :data="tableData"
               border
               style="width: 100%">
               <el-table-column
                 prop="proud_namematerial"
                 label="物料名称"
                 width="120">
               </el-table-column>
               <el-table-column
                 prop="stock_number"
                 label="物料编号"
                 width="119">
               </el-table-column>
               <el-table-column
                 prop="use_type"
                 label="用途类型"
                 width="120">
               </el-table-column>
               <el-table-column
                 prop="part_number"
                 label="数量"
                 width="100">
               </el-table-column>
               <el-table-column
                 prop="stock_number"
                 label="单位"
                 width="100">
               </el-table-column>
               <el-table-column
                 prop="stock_number"
                 label="单价(元)"
                 width="100">
               </el-table-column>
               <el-table-column
                 prop="stock_number"
                 label="小计(元)"
                 width="100">
               </el-table-column>
             </el-table>
                  <div class="aa">
                    <el-form-item>
                        <el-button type="primary" @click="submitForm('numberValidateForm')">复核通过</el-button>
                        <el-button @click="resetForm('numberValidateForm')">返回</el-button>
                      </el-form-item>
                  </div>
          </el-form>
        </el-dialog>


        </div>
</template>

<script>
      export default {
          methods: {
            submitForm(){
              console.log();
            },
            resetForm(){
              console.log();
            }
          },

          data() {
            return {
              tableData: [{
                date: '2016-05-02',
                name: '王小虎',
                province: '上海',
                city: '普陀区',
                address: '上海市普陀区金沙江路 1518 弄',
                zip: 200333
              }],

              reexamine:false,
              dialogTableVisible:false,
              from:{
                  date:'',
                  name:'',
                  province:'',
                  city:'',
                  address:'',
                  zip:'',
              }
            }
          }
        }
</script>

<style>
  .aa{
     text-align: right;
  }
</style>
